package com.yuyang.springcloud.service.impl;

import com.yuyang.springcloud.entities.CommonResult;
import com.yuyang.springcloud.entities.Payment;
import com.yuyang.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @author yu yang
 * @date 2022/11/4 -15:10
 */
@Component
public class PaymentFallBackService implements PaymentService
{
    @Override
    public CommonResult<Payment> getPayment(Long id)
    {
        return CommonResult.success(444,"服务降级返回,没有该流水信息",new Payment(id, "errorSerial......"));
    }
}
